package com.haixiaoke.saas.repository.mapper;

import com.haixiaoke.saas.repository.pojo.SmartLock;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author Dell
 * @Date 2023/6/16
 **/
@Mapper
public interface SmartLockMapper {
    @MapKey("house_id")
    Map<String, Map<String,Object>> selectBrandIdByHouseId(List<String> houseIds);

    List<SmartLock> selectSmartLockList(SmartLock smartLock);

    List<SmartLock> selectBySns(List<String> macList);

    int updateBatchById(List<SmartLock> smartLocks);

    SmartLock selectBySn(String sn);

    int updateById(SmartLock smartLock);
}
